package org.lmind.example.uc.webapp.controller.user;

import javax.annotation.Resource;

import org.lmind.example.common.web.AbstractController;
import org.lmind.example.common.web.spring.PageView;
import org.lmind.example.uc.api.UserCenter;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class IndexPage extends AbstractController {
	
	@Resource
	private UserCenter userCenter;

	@RequestMapping(value = "/user/index.html", method = RequestMethod.GET)
	public Object show() {
		sessionContext.getAttributes().setValue("username", "游客");
		return new PageView("/user/index", null);
	}
}
